package com.yuxi.Dao;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.yuxi.Entity.CommentRecordBrowse;
import com.yuxi.Entity.EvaluationRecordBrowse;

/**
 *评价记录浏览操作接口
 * @author hunter
 * @version 1.0
 * 2016/07/18
 */

@Repository
public interface EvaluationRecordBrowseDao {
	/**
	 * 通过eRBrowseId获取EvaluationRecordBrowse
	 * @param 	eRBrowseId
	 * @return EvaluationRecordBrowse 
	 * */
	public EvaluationRecordBrowse getRBrowse(Integer eRBrowseId);
	/**
	 * 添加一个eRBrowse  并返回添加的实体类
	 * @param 	eRBrowseId
	 * @return EvaluationRecordBrowse 
	 * */
	public EvaluationRecordBrowse addRBrowse(EvaluationRecordBrowse eRBrowse);
	/**
	 * 删除一个eRBrowse  并返回删除的实体类
	 * @param 	eRBrowse EvaluationRecordBrowse实体类
	 * @return EvaluationRecordBrowse 
	 * */
	public void deleteRBrowse(EvaluationRecordBrowse eRBrowse);
	/**
	 * 修改一个eRBrowse  并返回修改的实体类
	 * @param  eRBrowse  EvaluationRecordBrowse实体类
	 * @return EvaluationRecordBrowse 
	 * */
	public void modifly(EvaluationRecordBrowse eRBrowse);
	/**
	 * 批量更新
	 * @param eRBrowse
	 */
	public void bulkUpdate(Integer infoId,Integer userId);
	/**
	 * 
	 * @param infoId
	 * @return
	 */
	public List<EvaluationRecordBrowse> getEvaluationRecordBrowseByInfoId(int infoId,int eRecordId );
	/**
	 * 
	 * @param infoId
	 * @param userId
	 * @return
	 */
	public EvaluationRecordBrowse getRecordBrowseByInfoIdAndUserId(int infoId,int userId);
}
